package com.abc.cloud.dto.notice;

import com.abc.cloud.common.utils.PageUtil;
import com.baomidou.mybatisplus.core.metadata.IPage;
import lombok.Data;

import java.util.List;

public class PageDto extends PageUtil {
    Integer count;

    public PageDto(List<?> list, int totalCount, int pageSize, int currPage) {
        super(list, totalCount, pageSize, currPage);
    }

    public PageDto(IPage<?> page) {
        super(page);
    }

    public PageDto(List<?> list, Integer pageSize, Integer currPage, Integer totalCount, Integer totalPage) {
        super(list, pageSize, currPage, totalCount, totalPage);
    }

    public PageDto(List<?> list, Integer pageSize, Integer currPage, Integer totalCount, Integer totalPage, Integer count) {
        super(list, pageSize, currPage, totalCount, totalPage);
        this.count = count;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }
}
